//
//  CoreDataManager.h
//  CoreData
//
//  Created by dllo on 15/11/3.
//  Copyright (c) 2015年 MyNews. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@interface CoreDataManager : NSObject
// 数据管理器
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
// 数据模型器
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
// 连接器
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
// 保存
- (void)saveContext;
// 获取Document文件路径
- (NSURL *)applicationDocumentsDirectory;
// 封装成单例
+ (CoreDataManager *)shareManager;
@end
